home *** CD-ROM | disk | FTP | other *** search
- global gBlinkOffset, gNumCharsToBlink, gBlinkFlag, gStopFlag, gSelList, gStopPoint, gStopOffset
-
- on mouseUp
- if not gStopFlag then
- alert("Please make a Hold Text seletion first!")
- else
- if the selection = EMPTY then
- alert("Please make a selection in the Message field!")
- else
- if (the selStart < getAt(gSelList, 1)) or (the selEnd > getAt(gSelList, 2)) then
- alert("The blinking selection must be within the Hold selection!")
- else
- set howManyChars to the selEnd - the selStart
- if howManyChars > 36 then
- alert("Please make a selection of 36 characters or less!")
- else
- set gBlinkOffset to gStopOffset + (the selStart - getAt(gSelList, 1))
- set gNumCharsToBlink to howManyChars
- set the textStyle of char the selStart + 1 to the selEnd of member "Message" to "bold, italic"
- set gBlinkFlag to 1
- end if
- end if
- end if
- end if
- end
-